//主窗口样式
.main {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
  margin: 200px auto;
  width: 360px;
  height: 420px;
  border: #000 10px solid;
  border-radius: 5%;
  background: #b7d4a8;

  .box {
    position: relative;
    width: 304px;
    height: 304px;
    border: black 2px solid;

    .snake {
      //position: absolute;
      //top: 30px;
      //left: 20px;
      &>div {
        position: absolute;
        width: 10px;
        height: 10px;
        background: #000;
        border: #b7d4a8 1px solid;
      }
    }

    .food {
      display: flex;
      flex-flow: wrap;
      justify-content: space-between;
      align-content: space-between;
      width: 10px;
      height: 10px;
      position: absolute;
      top: 100px;
      left: 50px;

      div {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #000;
      }
    }
  }

  .detail {
    position: relative;
    width: 100%;
    height: 25px;
    p {
      font-family: "Courier New", serif;
      font-size: 20px;
      font-weight: bolder;
      color: black;
    }
    .score {
      position: absolute;
      left: 12px;
    }
    .level {
      position: absolute;
      right: 55px;
    }
  }
}